home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _swatchPanelTextFieldStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.3 KB  |  43 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _swatchPanelTextFieldStyle
  8.    {
  9.       public function _swatchPanelTextFieldStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var fbs:IFlexModuleFactory = param1;
  17.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField");
  18.          if(!style)
  19.          {
  20.             style = new CSSStyleDeclaration();
  21.             StyleManager.setStyleDeclaration(".swatchPanelTextField",style,false);
  22.          }
  23.          if(style.defaultFactory == null)
  24.          {
  25.             style.defaultFactory = function():void
  26.             {
  27.                this.highlightColor = 12897484;
  28.                this.borderColor = 14015965;
  29.                this.paddingLeft = 5;
  30.                this.shadowCapColor = 14015965;
  31.                this.paddingRight = 5;
  32.                this.shadowColor = 14015965;
  33.                this.borderStyle = "inset";
  34.                this.buttonColor = 7305079;
  35.                this.backgroundColor = 16777215;
  36.                this.borderCapColor = 9542041;
  37.             };
  38.          }
  39.       }
  40.    }
  41. }
  42.  
  43.